//
//  LawyerCell.m
//  Unicorn
//
//  Created by xalo on 16/5/4.
//  Copyright © 2016年 bhj_jun. All rights reserved.
//

#import "LawyerCell.h"

@interface LawyerCell ()

@end


@implementation LawyerCell


-(void)setCellWithModel:(LawyerModel *)model{

    self.name.text=model.name;
    self.telLabel.text=model.tel;
    self.province.text=model.province;
    self.cityLabel.text=model.city;
    if (model.spec.length==0) {
        self.specialty.text=@"一般民事，刑事案件，合同纠纷等";
    }else{
       self.specialty.text=model.spec;
    }
    [self.headImage sd_setImageWithURL:[NSURL URLWithString:model.img]];
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
